import { createI18n } from 'vue-i18n';
// common 语言包
import commonZh from './common/zh.json';
import commonEn from './common/en.json';
// ptlmFirstOrderProcessing 语言包
import ptlmFirstOrderProcessingEn from './ptlmFirstOrderProcessing/en.json'
import ptlmFirstOrderProcessingZh from './ptlmFirstOrderProcessing/zh.json'
import languageEn from './language/en.json'
import languageZh from './language/zh.json'

// 定义语言包
const messages = {
    en: {
    ...commonEn,
    ...ptlmFirstOrderProcessingEn,
    ...languageEn
  },
    zh: {
    ...commonZh,
    ...ptlmFirstOrderProcessingZh,
    ...languageZh
  }
};

const i18n = createI18n({
  legacy: true,
  allowComposition: true,
  locale: 'zh',
  messages
});

export default i18n;